/*
* 弹窗提示
* */
import { MessageBox } from 'element-ui'

const mb = (content, title) => {
  return new Promise((resolve, reject) => {
    MessageBox.confirm(content, title, {
      confirmButtonText: '确认',
      cancelButtonText: '取消',
      type: 'warning'
    }).then(() => {
      resolve()
    }).catch(() => {
      reject()
    })
  })
}

export default mb
